package com.itheima.reggie;

import org.springframework.util.DigestUtils;

import java.util.UUID;

public class demo {
    public static void main(String[] args) {
        //f4a8d06df74dc08e1b854d0ad712a73390532386d4e34916b47d90bad2f6a354
        //90532386d4e34916b47d90bad2f6a354
        String salt = UUID.randomUUID().toString().replace("-", "");
        String mingwen="123456";
        String diyici=(DigestUtils.md5DigestAsHex(mingwen.getBytes())+salt);
        String miwen=DigestUtils.md5DigestAsHex(diyici.getBytes())+salt;
        System.out.println(miwen);

    }
}
